package com.course.testng;

import org.testng.annotations.Test;

public class DependTest {

    @Test
    public void test1() {
        System.out.println("我是test1方法");
//        throw new RuntimeException();
    }

    @Test(dependsOnMethods = {"test1"})
    public void test2() {
        // 依赖于test1，test1异常，会被忽略
        System.out.println("我是test2方法");
    }
}
